# $Id: PKGBUILD 65552 2012-02-21 08:53:43Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Geoffroy Carrier <geoffroy.carrier@koon.fr>
# Contributor: Jaroslav Lichtblau <tu@dragonlord.cz>

pkgname=gxmessage
pkgver=2.12.4
pkgrel=2
pkgdesc="A GTK2 based xmessage clone."
arch=('i686' 'x86_64')
url="http://homepages.ihug.co.nz/~trmusson/programs.html#gxmessage"
license=('GPL')
depends=('gtk2' 'desktop-file-utils')
makedepends=('pkgconfig' 'intltool')
install=$pkgname.install
source=(http://homepages.ihug.co.nz/~trmusson/stuff/$pkgname-$pkgver.tar.gz
        $pkgname.desktop)
md5sums=('7c94c714ebedbfa2db2d645cc4a4092a'
         'af92506581c1aae70e3845a66a983f22')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
  make DESTDIR="$pkgdir" install
  install -D -m644 "$srcdir/$pkgname.desktop" \
    "${pkgdir}/usr/share/applications/$pkgname.desktop"
}
